import request from '@/utils/request'

export function getAclTreeList(parentId){
    return request({
        url: '/acl/getAclTreeList/'+parentId,
        method: 'get',
    })
}

export function getAllAclTreeList(){
    return request({
        url: '/acl/getAllAclTreeList/',
        method: 'get',
    })
}

export function saveAcl(data){
    return request({
        url: '/acl/saveAcl',
        method: 'post',
        data
    })
}

export function updateAcl(data){
    return request({
        url: '/acl/updateAcl',
        method: 'put',
        data
    })
}

export function freezeAcl(data,status){
    return request({
        url: '/acl/freezeAcl/'+status,
        method: 'put',
        data
    })
}

export function deleteAcl(data){
    return request({
        url: '/acl/deleteAcl',
        method: 'delete',
        data
    })
}

export function deleteOneAcl(id){
    return request({
        url: '/acl/deleteOneAcl/'+id,
        method: 'delete',
    })
}
